home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
BARNET
/
FREENET
/
DEVOS
/
FDSOURCE.ARC
/
h
/
wimplib
< prev
Wrap
Text File
|
1996-04-14
|
2KB
|
65 lines
/* File: wimplib.h
* Purpose: Define prototypes for general wimp support functions
*/
#define ICMAXBUF 512
#define wimp_select_icon(w,i,f) wimp_set_icon_state(w, i, (f)?wimp_ICON_SELECTED:NONE, wimp_ICON_SELECTED)
#define wimp_shade_icon(w,i,f) wimp_set_icon_state(w, i, (f)?wimp_ICON_SHADED:NONE, wimp_ICON_SHADED)
#define wimp_undelete_icon(w,i) wimp_set_icon_state(w, i, NONE, wimp_ICON_DELETED)
#define wimp_delete_icon(w,i) wimp_set_icon_state(w, i, wimp_ICON_DELETED, wimp_ICON_DELETED)
#define open_PREVIOUS (wimp_open*)0
#define open_POINTER (wimp_open*)1
#define open_CENTER (wimp_open*)2
#define openwindow_pre(w,i) openwindow(w,i,open_PREVIOUS)
#define openwindow_ptr(w,i) openwindow(w,i,open_POINTER)
#define openwindow_ctr(w,i) openwindow(w,i,open_CENTER)
/* Auto */
extern void screen_vars(void)
;
extern wimp_w loadtemplate(char const *name)
/* Loads and creates the named window from the Template file.
* Workspace is claimed dynamicaly, released in dispose_indir()
* Returns window handle.
*/
;
extern void dispose_indir(void)
/* This function should be called when all indircted window data can be
* removed, probably in an atexit() handler. Note that this function can be
* passed to atexit().
*/
;
extern bool win_isopen(wimp_w handle)
;
extern void openwindow(wimp_w handle, wimp_i ic, wimp_open *pos)
/* open window 'handle' on position as indictaed by 'pos':
* open_PREVIOUS On previous position
* open_POINTER Centered under pointer
* open_CENTER Centered on screen
* if ic!=-1, set the caret in the given icon
*/
;
extern void openpaned(wimp_w handle, wimp_w pane, wimp_i ic, wimp_open *win_pos)
;
extern char *mkstr(char *s)
;
extern char *geticontext(wimp_w window, wimp_i icon)
;
extern const char *seticontext(wimp_w window, wimp_i icon, const char *s)
/* Update icontext and return ptr to the icon's text for reference only!
*/
;
extern int iprintf(wimp_w w, wimp_i i, char *s, ...)
/*
* Icon filling printf() routine.
*/
;
extern wimp_menu *popup(wimp_w w, wimp_i i, wimp_menu *menu)
;
extern void settitle(wimp_w w, const char *s)
;
extern bool icon_selected(wimp_w w, wimp_i i)
;